import request from '@/utils/request'

export function topCheck(data) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolTop',
    method: 'post',
    data
  })
}

export function getCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolYcCount',
    method: 'post',
    data
  })
}

export function getAllCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolAllCount',
    method: 'post',
    data
  })
}

export function getYarnPoolTop(data) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolTop',
    method: 'post',
    data
  })
}

export function getYarnCpuTop(data) {
  return request({
    url: '/monitor_api/cmResouce/selYarnCpuTop',
    method: 'post',
    data
  })
}

export function getYarnCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolYcCount',
    method: 'post',
    data
  })
}

export function getYarnAllCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolAllCount',
    method: 'post',
    data
  })
}

export function getHdfsTop(data) {
  return request({
    url: '/monitor_api/cmResouce/selHdfsNcTop',
    method: 'post',
    data
  })
}

export function getHdfsAllCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selHdfsNcAllCount',
    method: 'post',
    data
  })
}

export function getHdfsCount(data) {
  return request({
    url: '/monitor_api/cmResouce/selHdfsNcYcCount',
    method: 'post',
    data
  })
}

export function getYarnSyl(data) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolSyl',
    method: 'post',
    data
  })
}

export function getImpalaSyl(data) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolSyl',
    method: 'post',
    data
  })
}

export function getHdfsSyl(data) {
  return request({
    url: '/monitor_api/cmResouce/selHdfsNcSyl',
    method: 'post',
    data
  })
}

export function selYarnPoolYc(params) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolYc',
    method: 'get',
    params
  })
}

export function selImpalaPoolYc(params) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolYc',
    method: 'get',
    params
  })
}

export function selYarnPoolAll(params) {
  return request({
    url: '/monitor_api/cmResouce/selYarnPoolAll',
    method: 'get',
    params
  })
}

export function selImpalaPoolAll(params) {
  return request({
    url: '/monitor_api/cmResouce/selImpalaPoolAll',
    method: 'get',
    params
  })
}

export default { topCheck, getCount, getAllCount, getYarnPoolTop, getYarnCpuTop, getYarnCount, getYarnAllCount, getHdfsTop, getHdfsCount, getHdfsAllCount, getYarnSyl, getImpalaSyl, getHdfsSyl,
  selYarnPoolYc, selImpalaPoolYc, selYarnPoolAll, selImpalaPoolAll
}
